<{include file="inc_header.html"}>
<div class="main">
  <div class="left">
    <form id="frm_weibo" method="post" enctype="multipart/form-data">
      <{if $TEMPLATE.report}>
      <div class="wb_report">
        <a href="javascript:;" class="close">关闭</a>
        <h2>发送报告</h2>
        <ul>
          <{foreach from=$TEMPLATE.report item=item key=key}>
          <li><span class="<{($key=='watch') ? $key : (($item.status) ? 'ok' : 'err')}>"><b><{$key|get_name_r}></b><{$item.msg}></span></li>
          <{/foreach}>
        </ul>
      </div>
      <{/if}>
      <div class="wb_box">
        <h2><{$TEMPLATE.title}></h2>
        <div class="wb_top_bar calcword">
          还可以输入<em>140</em>字
        </div>
        <textarea name="content" cols="65" rows="4" class="wb_tx"><{$TEMPLATE.data.content|htmlspecialchars}></textarea>
        <div class="wb_bottom_bar">
          <div class="upload">
            图片：
            <input type="file" name="image">
          </div>
          <label><input type="checkbox" name="time"<{if $TEMPLATE.data.time}> checked<{/if}>>定时发送</label>
          <input type="text" name="send_time" size="16" value="<{if $TEMPLATE.data.send_time}><{$TEMPLATE.data.send_time}><{else}><{date('Y-m-d H:i')}><{/if}>" class="border"<{if !$TEMPLATE.data.time}> disabled<{/if}>>
          <input type="submit" value="<{if $TEMPLATE.data.time}>定时<{/if}>发送" class="button" onClick="disabled=true;form.submit()">
        </div>
      </div>
      <b class="clear"></b>
      <fieldset>
        <legend>发送选项
        <label>
          <input type="checkbox" class="check_all" checked>
          全选/反选</label>
        </legend>
        <{foreach from=$TEMPLATE.target_list item=item key=key}> <label<{$key|cat:'|':0|disabled}>> <input type="checkbox" name="target[]" value="<{$key}>|0" class="cb"<{$key|cat:'|':0|disabled}>><{$item}>
        </label>
        <{/foreach}>
        <{foreach name=outer from=$TEMPLATE.platform_list item=platform key=key}>
        <fieldset>
          <legend>
          <label> <{$platform.name}>
            <input type="checkbox" class="check_all" checked>
          </label>
          </legend>
          <{foreach from=$platform.list item=item key=key}> <label<{$key|cat:'|':$platform.id|disabled}>> <input type="checkbox" name="target[]" value="<{$key}>|<{$platform.id}>" class="cb"<{$key|cat:'|':$platform.id|disabled}>><{$item}>
          </label>
          <{/foreach}>
        </fieldset>
        <{/foreach}>
      </fieldset>
    </form>
  </div>
  <div class="right">
    <{include file="inc_right_nav.html"}>
  </div>
  <b class="clear"></b>
</div>
<{include file="inc_footer.html"}> 